<table style="text-align: left; width: 95%; 95%;" border="0" cellpadding="2" cellspacing="2">
  <tbody>


    <tr>
      <td style="text-align: center;">
      <table style="text-align: left; width: 98%; height: 98%;" border="0" cellpadding="2" cellspacing="2">
        <tbody>
          <tr>
	    <td style="vertical-align: top;">

            	<?php
			include 'showMap.php';
		?>

	    </td>
            <td>
		<?php 
 
			switch($id)
			{
				case 'login':
				include 'login.html';
				break;

				case 'loggedin';
				include 'login.php';
				$_SESSION['userid'] = $userid;
				break;

				case 'adduser':
				include 'newUser.html';
				break;

				case 'addactivity':
				if($_SESSION['userid'] > 0)
				{	
					include 'addActivity.html';
				}	
				else
				{
					echo "You must login first";
				}
				break;
				
				case 'activityAdded';
				include 'addActivity.php';
				break;
				
				case 'useradded':
				include 'newUser.php';
				break;
		
				case 'logout';
				$_SESSION['userid'] = -1;
				unset($_SESSION['userid']);
				echo "Logged out.";
				break;
		
				case 'home';
				$mode = 'all';
				include 'report.php';
				break;
		
				default:
				require 'report.php';
				}
			?>
		</td>
          </tr>
        </tbody>
      </table>
      </td>
    </tr>

    <tr>

      <td><?php include 'footer.php'; ?></td>

    </tr>

  </tbody>
</table>

